<template>
    <div class="space" :style="style"></div>
</template>

<script type="text/ecmascript-6">
  /**
   * @author 白雨浓
   * @date 2018/12/8 18:16
   *
   * 空格
   **/
  export default {
    name: 'Space',
    props: {
      margin: {
        type: String,
      },
      height: {
        type: String,
      },
    },
    created() {
      let style = '';

      if (this.margin) {
        style += `margin:${this.margin};`
      }

      if (this.height) {
        style += `height:${this.height};`
      }

      this.style = style;
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
    .space {
    }
</style>
